﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace System
{
    public static class ReflectionHelper
    {
        public static bool IsHaveTheAttribute<T, Attribute>()
        {
            Type t = typeof(T);
            var cas = t.GetCustomAttributes(true);
            foreach (var ca in cas)
            {
                if (ca.GetType() == typeof(Attribute))
                {
                    return true;
                }
            }
            return false;
        }
    }
}
